(function(e){"use strict";e.HSCore.components.HSCarousel={_baseConfig:{autoplay:false},pageCollection:e(),init:function(a,i){this.collection=a&&e(a).length?e(a):e();if(!e(a).length)return;this.config=i&&e.isPlainObject(i)?e.extend({},this._baseConfig,i):this._baseConfig;this.config.itemSelector=a;this.initCarousel();return this.pageCollection},initCarousel:function(){var a=this,i=a.config,t=a.pageCollection;this.collection.each((function(a,s){var n=e(s),l=n.attr("id"),d=n.data("nav-for"),o=n.data("is-thumbs"),r=n.data("arrows-classes"),c=n.data("arrow-left-classes"),f=n.data("arrow-right-classes"),u=n.data("pagi-classes"),h=n.data("pagi-helper"),g=n.data("pagi-icons"),p='<div class="js-prev '+r+" "+c+'"></div>',v='<div class="js-next '+r+" "+f+'"></div>',C=n.data("slides-show"),k=JSON.parse(BX.data(s,"slick")),w=n.data("slides-scroll"),x=n.data("autoplay"),m=n.data("easing"),b=n.data("fade"),y=n.data("speed"),S=n.data("rows"),T=n.data("center-mode"),$=n.data("center-padding"),j=n.data("pause-hover"),F=n.data("variable-width"),O=n.data("initial-slide"),P=n.data("vertical"),A=n.data("rtl"),H=n.data("in-effect"),N=n.data("out-effect"),_=n.data("infinite"),q=n.data("title-pos-inside"),z=n.data("focus-on-select"),J=n.data("lazy-load"),L=n.data("adaptive-height"),Q=JSON.parse(s.getAttribute("data-responsive"));n.on("init",(function(a,i){e(i.$slides).css("height","auto");e(i.$slideTrack).find(".slick-cloned").css("height","auto")}));if(H&&N){n.on("init",(function(a,i){e(i.$slides).addClass("single-slide")}))}if(h){n.on("init",(function(e,a){var i=n.find(".js-pagination");if(!i.length)return;i.append('<span class="u-dots-helper"></span>')}))}if(o){e("#"+l).on("click",".slick-slide",(function(a){a.stopPropagation();var i=e(this).data("slick-index");if(e("#"+l).slick("slickCurrentSlide")!==i){e("#"+l).slick("slickGoTo",i)}}))}n.on("init",(function(a,i){var t=n.find(".js-pagination");if(!t.length)return;e(t[0].children[0]).addClass("slick-current")}));var B=k.dots!==false;if(B&&u===undefined){B=false}n.slick({autoplay:x?true:false,autoplaySpeed:y?y:3e3,cssEase:k.animation?k.animation:"ease",easing:m?m:"linear",fade:b?true:false,accessibility:typeof i.accessibility!="undefined"?i.accessibility:true,infinite:typeof i.infinite!="undefined"?i.infinite:_?true:false,initialSlide:O?O-1:0,slidesToShow:C?C:1,slidesToScroll:w?w:1,centerMode:T?true:false,variableWidth:F?true:false,pauseOnHover:j?true:false,rows:S?S:1,vertical:P?true:false,verticalSwiping:P?true:false,rtl:A?true:false,centerPadding:$?$:0,focusOnSelect:z?true:false,lazyLoad:J?J:false,asNavFor:d?d:false,prevArrow:r?p:false,nextArrow:r?v:false,dots:B,dotsClass:"js-pagination "+u,adaptiveHeight:!!L,customPaging:function(a,i){var t=e(a.$slides[i]).data("title");if(t&&g){return"<span>"+t+"</span>"+g}else if(g){return"<span></span>"+g}else if(t&&q){return"<span>"+t+"</span>"}else if(t&&!q){return"<span></span>"+'<strong class="u-dot-title">'+t+"</strong>"}else{return"<span></span>"}},responsive:Q});n.on("breakpoint",(function(a,i,t){e(i.$slides).css("height","auto");e(i.$slideTrack).find(".slick-cloned").css("height","auto")}));n.on("beforeChange",(function(a,i,t,s){var l=n.find(".js-pagination");if(!l.length)return;if(t>s){e(l[0].children).removeClass("slick-active-right");e(l[0].children[s]).addClass("slick-active-right")}else{e(l[0].children).removeClass("slick-active-right")}e(l[0].children).removeClass("slick-current");setTimeout((function(){e(l[0].children[s]).addClass("slick-current")}),.25)}));if(H&&N){n.on("afterChange",(function(a,i,t,s){e(i.$slides).removeClass("animated set-position "+H+" "+N)}));n.on("beforeChange",(function(a,i,t){e(i.$slides[t]).addClass("animated "+N)}));n.on("setPosition",(function(a,i){e(i.$slides[i.currentSlide]).addClass("animated set-position "+H)}))}t=t.add(n)}))},initTextAnimation:function(a,i){if(!window.TextFx||!window.anime||!a.length)return;var t=a.find(i);if(!t.length)return;t.each((function(a,i){var t=e(i);if(!t.data("TextFx")){t.data("TextFx",new TextFx(t.get(0)))}}));a.on("beforeChange",(function(e,a,t,s){var n=a.$slider.find(".slick-track").children();var l=n.eq(t),d=n.eq(s);l=l.find(i);d=d.find(i);if(l.length){l.data("TextFx").hide(l.data("effect")?l.data("effect"):"fx1")}if(d.length){d.data("TextFx").show(d.data("effect")?d.data("effect"):"fx1")}}))}}})(window.jQueryLanding||jQuery);
//# sourceMappingURL=hs.carousel.map.js